package com.ruibo.tax.model.xml2bean;

import com.ruibo.tax.model.SWRNSSB;
import com.ruibo.tax.model.base.PackageHead;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * @description: 7.2.10水污染纳税申报计算信息
 * @author: 孙 峰
 * @time: 2020/10/21 11:06
 */
@XmlRootElement(name = "Package")
public class SWRNSSBXMLEncodeModel {
    private PackageHead heads = null;//XML报文头

    private List<SWRNSSB> roots = null;//XML报文数据

    public void setHeads(PackageHead heads) {
        this.heads = heads;
    }

    public void setRoots(List<SWRNSSB> roots) {
        this.roots = roots;
    }

    @XmlElement(name = "PackageHead")
    public PackageHead getHeads() {
        return heads;
    }

    @XmlElementWrapper(name = "Data")
    @XmlElement(name = "Record")
    public List<SWRNSSB> getRoots() {
        return roots;
    }
}
